package com.gulumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulumall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author gzf
 * @email gzf0125@qq.com
 * @date 2023-02-01 22:07:32
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuBuIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径
     * 父路径/子路径/后代
     * @param catelogId
     * @return
     */
    Long[]  findCatelogPath(Long catelogId);

    //级联更新所有数据
    void updateCascade(CategoryEntity categoryEntity);
}

